/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;


@ApiModel(value = "考核项模板", description = "考核项模板实体类")
public class KPITemplate extends BaseEntity {

    public KPITemplate() {
        super();
    }

    public KPITemplate(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "年份", name = "year", required = true)
    private String year;

    @ApiModelProperty(value = "考核项名称", name = "name", required = true)
    private String name;

    @ApiModelProperty(value = "规则如> >= < <=等", name = "rule", required = true)
    private String rule;

    @ApiModelProperty(value = "考核项设定值", name = "val", required = true)
    private Double val;

    @ApiModelProperty(value = "否定项,0否1是", name = "negatively", required = true)
    private Integer negatively;

    @ApiModelProperty(value = "描述", name = "note", required = true)
    private String note;

    @ApiModelProperty(value = "4位数字编码", name = "code", required = true)
    private String code;

    @ApiModelProperty(value = "是否考核，0否1是", name = "isCheck", required = true)
    private int isCheck;

    @ApiModelProperty(value = "是否自动统计，0否1是", name = "isAutomaticStatistics", required = true)
    private int isAutomaticStatistics;

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public Double getVal() {
        return val;
    }

    public void setVal(Double val) {
        this.val = val;
    }

    public Integer getNegatively() {
		return negatively;
	}

	public void setNegatively(Integer negatively) {
		this.negatively = negatively;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(int isCheck) {
        this.isCheck = isCheck;
    }

    public int getIsAutomaticStatistics() {
        return isAutomaticStatistics;
    }

    public void setIsAutomaticStatistics(int isAutomaticStatistics) {
        this.isAutomaticStatistics = isAutomaticStatistics;
    }

    @Override
    public String toString() {
        return "KPITemplate{" +
                "year='" + year + '\'' +
                ", name='" + name + '\'' +
                ", rule='" + rule + '\'' +
                ", val=" + val +
                ", negatively=" + negatively +
                ", note='" + note + '\'' +
                ", code='" + code + '\'' +
                ", isCheck=" + isCheck +
                ", isAutomaticStatistics=" + isAutomaticStatistics +
                '}';
    }
}
